package com.suqiu.common.utils;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RecipientInfo implements Serializable {

    /**
     * 收件人姓名
     */
    private String recipientName;

    /**
     * 收件人邮件地址
     */
    @Email(message = "请输入正确的邮箱地址")
    private String recipientEmail;

    /**
     * 发送类型 cc:抄送 bcc:密送
     */
    @NotBlank(message = "sendType不能为空")
    private String sendType;
}
